package com.juneyaoair.search.request;



import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 分页
 * @author :master
 * @date :20200910
 */
public class PageRequest {

    @NotNull(message = "当前页不能为空")
    @Min(value = 0,message = "页码从0开始")
    private int pageIndex;

    @NotNull(message = "页显示记录数不能为空")
    @Min(value = 1,message = "页显示记录数最小为1")
    private int pageCount;


    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }
}
